package com.chenxiao.responsibilityChain.design;


/**
 * @Author: CX
 * @Date: Created in  2023/05/28 16:23
 * @version: v1.0
 * @Description: TODO
 **/
public class client {
    public static void main(String[] args) {
        // 创建责任链机制
        DesignModel designModel = new Staff("专员名称");
        designModel.setNextApprove(new Manager("经理名称")).setNextApprove(new CFO("CFO名称"));
        designModel.approve(6000);
    }


}
